package cn.fanqinghong.ymcc.dto;

import cn.fanqinghong.ymcc.domain.*;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * FAN
 * 2022/7/21  10:23
 */
@Data
public class CourseDto {
    @Valid
    private Course course;
    @Valid
    private CourseDetail courseDetail;
    @Valid
    private CourseMarket courseMarket;
    @Valid
    private CourseResource courseResource;
    @NotEmpty(message = "讲师必选")
    private List<Long> teacharIds;
}
